﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProductList.aspx.cs" Inherits="kim.ProductList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>资讯管理</title>
    <link rel="stylesheet" type="text/css" href="../img/style.css" />
    <script src="../Js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/function.js"></script>
    <script type="text/javascript">
        $(function () {
            $(".msgtable tr:nth-child(odd)").addClass("tr_bg"); //隔行变色
            $(".msgtable tr").hover(
			    function () {
			        $(this).addClass("tr_hover_col");
			    },
			    function () {
			        $(this).removeClass("tr_hover_col");
			    }
		    );
        });
    </script>
</head>
<body style="padding: 10px;">
    <form id="form1" runat="server">
    <div class="navigation">
        <span class="add"><a href="AddorEditProductList.aspx?type=Add&typeid=<%=typeid %>">
            添加信息</a></span><b>您当前的位置：首页 &gt;
                <asp:Label ID="Label1" runat="server"></asp:Label>
                &gt; 信息列表 </b>
    </div>
    <div class="spClear">
    </div>
    <div class="spClear">
    </div>
    <div class="pto">
    筛选条件: &nbsp;&nbsp;&nbsp;&nbsp; 分类： <asp:DropDownList ID="ddlParentId" runat="server" AutoPostBack="true"></asp:DropDownList>
   
    </div>
    <br />
    <asp:Repeater ID="rptlist" runat="server">
        <HeaderTemplate>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                <tr>
                    <th width="8%">
                        编号
                    </th>
                    <th align="center">
                        标题
                    </th>
                    <%--<th width="13%">
                        产品分类
                    </th>--%>
                    <th width="13%">
                        序列号
                    </th>
                    <th width="10%">
                       是否显示
                    </th>
                    <%-- <th width="10%">
                        首页推荐
                    </th>--%>
                    <th width="10%">
                        操作
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td align="center">
                    <asp:Label ID="lb_id" runat="server" Text='<%#Eval("id")%>'></asp:Label>
                </td>
                <td align="center">
                    <font color="#6699ff"><%# Eval("Name") %></font>
                </td>
                <%--<td align="center">
                    <%#GetNeTitle(Convert.ToInt32(Eval("ProductTypeID")))%>—><%#GetNeTitle2(Convert.ToInt32(Eval("IsProductIndex")))%>
                </td>--%>
                <td align="center">
                    <%#Eval("Sort")%>
                </td>
                <td align="center">
                    <asp:LinkButton ID="lbtnqx" CommandName='<%# Eval("ID") %>' OnCommand="lbtnqx_Click"
                        runat="server"><%# Eval("DesignerID").ToString()=="1" ? "<FONT color=#005EAC>√</font>" : "<FONT color=#FF3300>×</font>"%></asp:LinkButton>
                </td>
               <%-- <td align="center">
                    <asp:LinkButton ID="lbtnqx" CommandName='<%# Eval("NeID") %>' OnCommand="lbtnqx_Click"
                        runat="server"><%# Eval("Neindex").ToString() == "0" ? "<FONT color=#005EAC>×</font>" : "<FONT color=#FF3300>√</font>"%></asp:LinkButton>
                </td>--%>
                <td align="center">
                    <span><a href="AddorEditProductList.aspx?id=<%#Eval("id")%>&type=Edit&typeid=<%=typeid %>">
                        修改</a></span> <span><a href="AddorEditProductList.aspx?id=<%#Eval("id")%>&type=Delete&typeid=<%=typeid %>"
                            onclick="return confirm( '确定要删除吗？')">删除</a></span>  
                           
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <div class="pagination">
        <%=StrPage%>
    </div>
    <div class="spClear">
    </div>
    </form>
</body>
</html>
